<template>
    <div class="popOrganizerEdit">
        <el-drawer
            title="主办单位信息编辑"
            :visible.sync="is_drawer"
            class="drawer-box"
        >
            <div class="content-box">
                <el-form ref="organizerForm" :model="form" label-width="80px">
                    <el-form-item label="主办单位">
                        <el-input
                            v-model="form.cpname"
                            class="input-w"
                            placeholder="请输入主办单位"
                        >
                        </el-input>
                    </el-form-item>
                    <el-form-item label="点击跳转">
                        <el-radio
                            v-model="form.set_advc.bttn_cpname.type"
                            label="0"
                            >关闭
                        </el-radio>

                        <el-radio
                            v-model="form.set_advc.bttn_cpname.type"
                            label="3"
                            >我的云店</el-radio
                        >
                        <el-radio
                            v-model="form.set_advc.bttn_cpname.type"
                            label="1"
                            >网页链接</el-radio
                        >
                        <el-form-item
                            v-show="form.set_advc.bttn_cpname.type == 3"
                        >
                            <!-- <el-radio
                                v-model="
                                    form.set_advc.bttn_cpname.type_3.shopid_yd
                                "
                                label="1"
                                >云店1</el-radio
                            >
                            <el-radio
                                v-model="
                                    form.set_advc.bttn_cpname.type_3.shopid_yd
                                "
                                label="2"
                                >云店2</el-radio
                            > -->
                            <el-select
                                v-model="
                                    form.set_advc.bttn_cpname.type_3.shopid_yd
                                "
                                placeholder="选择云店"
                            >
                                <el-option
                                    v-for="item in yun_list"
                                    :key="item.id"
                                    :label="item.name"
                                    :value="item.id"
                                >
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item
                            v-show="form.set_advc.bttn_cpname.type == 1"
                        >
                            <el-input
                                v-model="form.set_advc.bttn_cpname.type_1.link"
                                class="input-w"
                            >
                                <template slot="prepend">HTTP://</template>
                            </el-input>
                        </el-form-item>
                    </el-form-item>
                </el-form>
            </div>
        </el-drawer>
    </div>
</template>

<script>
// import xxx from '@/components/comm/xxx.vue';
export default {
    props: ["form", "yun_list"],
    components: {},
    computed: {},
    data() {
        return {
            is_drawer: false,
        };
    },
    created() {},
    mounted() {},
    methods: {
        initData() {
            this.is_drawer = true;
        },
    },
};
</script>

<style lang="scss" scoped >
.content-box {
    padding: 10px;
}
</style>
